import { TBY } from '@/api/config/servicePort'
import http from '@/api'

export namespace FireTime {
  export interface Form {
    id: number
    occurrenceTime: string
    occurrenceTimeFormat: string
  }
}

// 详情
export const getFireTimeDetail = () => {
  return http.get<Partial<FireTime.Form>>(TBY + `/fire_time/get`, { loading: false })
}

// 新增或修改
export const saveOrUpdateFireTime = (params: Partial<FireTime.Form>) => {
  return http.post(TBY + `/fire_time/save`, params)
}
